<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>皇室蛋糕o</title>
		<link href="assets/css/admin.css" rel="stylesheet" type="text/css">
		<link href="assets/css/amazeui.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="res/static/css/main.css">
		<link href="css/personal.css" rel="stylesheet" type="text/css">
		<link href="css/infstyle.css" rel="stylesheet" type="text/css">
		<script src="assets/js/jquery.min.js" type="text/javascript"></script>
		<script src="assets/js/amazeui.js" type="text/javascript"></script>
</head> 
<body>   
		<jsp:include page="header.jsp"></jsp:include>
					<div class="center">
			<div class="col-main">
				<div class="main-wrap">

					<div class="am-cf am-padding">
						<div class="am-fl am-cf"><strong class="am-text-danger am-text-lg">修改密码</strong> / <small>Password</small></div>
					</div>
					<hr/>
					<h3>${successmsg }</h3>
					<br>
					<br>
					<form class="am-form am-form-horizontal" method="post" action="updateConsumePwd">
						<input type="hidden" name="id" value="2"><!-- ${consumer.cid } -->
						<div class="am-form-group">
							<label for="user-old-password" class="am-form-label" >原密码</label>
							<div class="am-form-content">
								<input type="password" id="user-old-password" placeholder="请输入原登录密码" name="beanpwd" id="beanPwd" value=""><!-- ${consumer.cpwd } -->
							</div>
						</div> <br>
						<p id="pmsg">${msg }</p><br>
						<div class="am-form-group">
							<label for="user-new-password" class="am-form-label">新密码</label>
							<div class="am-form-content">
								<input type="password" name="newpwd" id="user-new-password" placeholder="由数字、字母组合">
							</div>
						</div>
						<!-- <div class="am-form-group">
							<label for="user-confirm-password" class="am-form-label">确认密码</label>
							<div class="am-form-content">
								<input type="password" id="user-confirm-password" placeholder="请再次输入上面的密码">
							</div>
						</div> -->
						<div class="info-btn">
							<!-- <div class="am-btn am-btn-danger">保存修改</div> -->
								<input class="am-btn am-btn-danger" type="submit" value="保存修改" name=""> 
						</div>

					</form>

				</div>
			
			</div>

			<aside class="menu">
				<ul>
					<li class="person">
						<a href="index.html">个人中心</a>
					</li>
					<li class="person">
						<a href="#">个人资料</a>
						<ul>
							<li class="active"> <a href="gopersoninfo">个人信息</a></li>
							<li> <a href="safety.html">安全设置</a></li>
							<li> <a href="getAddressInfo">收货地址</a></li>
						</ul>
					</li>
					<li class="person">
						<a href="#">我的交易</a>
						<ul>
							<li><a href="order.html">订单管理</a></li>
							<li> <a href="change.html">退款售后</a></li>
						</ul>
					</li>
					<li class="person">
						<a href="#">我的资产</a>
						<ul>
							<li> <a href="coupon.html">优惠券 </a></li>
							<li> <a href="bonus.html">红包</a></li>
							<li> <a href="bill.html">账单明细</a></li>
						</ul>
					</li>

					<li class="person">
						<a href="#">我的小窝</a>
						<ul>
							<li> <a href="collection.html">收藏</a></li>
							<li> <a href="foot.html">足迹</a></li>
							<li> <a href="comment.html">评价</a></li>
							<li> <a href="news.html">消息</a></li>
						</ul>
					</li>
  
				</ul>

			</aside>
		</div>
		<jsp:include page="footer.jsp"></jsp:include>
</body>
<!-- <script type="text/javascript">
	$(function(){
		$("#beanPwd").click(function(){
			var pwd = $("#beanPwd").val();
			alert(pwd);
			$.ajax({
				type: 'post',
				url: 'findpwdByid',
				data : "pwd="+pwd,
				success :function(msg){
					if (msg.msgs == "success") {
						$("#pmsg").text(原密码正确,请继续输入要修改的密码);
					}else if(msg == "error"){
						$("#pmsg").text(原密码错误,请重新出入原密码);
					}
				}
				
			})
			
		});
		
		
	})

</script> -->
</html>